﻿import std.stdio :mes= writefln;
import std.file;
import std.stream;
import std.perf;

//测试点阵字模格式是否正常
void main(){
	rac  r;
	rac  t;

	
	mes(r.a, r.b, r.c, r.d);

	t=r;

	t.d=80;
	with(t){
		a=1;b=2;c=3;d=4;
	}
	with(r){
		a=5;b=6;c=7;d=8;
	}
	mes(r.d);
	mes(t.d);
	

}
struct rac{
	int a=0,b=0,c=40,d=40;
}

void test(){
		//void[] bin= std.file.read(r"res/zm.bitfont");
	//mes(bin.length);

	auto mm=new BufferedFile(r"res/zm.bitfont");
	int a ;
	mm.read(a);
	mes(a);
	
	uint b;
	mm.read(b);
	mes(b);
	
	wchar[]  c= new wchar[100] ; 
	for(int i=0;i<100; i++){
		
		mm.read(c[i]);
	}
	mes(c);

}